<template>
  <div class='specify'>
    <SpecifyHead :headData0="headData" :headBtnsData="headBtnsData" @refrash="refrash" />
    <SpecifyBody :tableModel0="tableModel" :flash="flash" />
  </div>
</template>
<script>
import SpecifyHead from './head.vue'
import SpecifyBody from './body.vue'
import specifyData from './specifyUrl.js'
import MixIns from '@/mix/mix.js'
export default {
  components: {SpecifyHead,SpecifyBody},
  name: "",
  data() {
    return {
      headData:[],
      headBtnsData:[],
      tableModel:[],
      flash:-1,//判断刷新
    };
  },
  methods: {
    init(){
      let val = specifyData.get(this.path)
      this.$set(this,"headData",val.tabData)
      this.$set(this,"headBtnsData",val.btnsData)
      this.$set(this,"tableModel",val)
      this.$store.state.searchShow=val.searchInfo?true:false //显隐搜索

      this.refrash(val.tabData[0])
    },
    refrash(val){
      this.flash=val
    }
  },
  created() {
    this.init()
  },
  mixins:[MixIns]
};
</script>
<style lang="scss" scoped>
.specify {
}
</style>